package com.shawn.commons.utils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.stream.Collectors;

public class EducationTransfer {
    public static ArrayList<String> getEducations(String education){
    ArrayList<String> educations =  new ArrayList<>(Arrays.asList("不限","高中及以下","大专","本科", "研究生","博士"));
        for (int i = 0; i < educations.size(); i++) {
                if (educations.get(i).equals(education)){
                    return educations;
                }else {
                    educations.remove(i);
                    i--;
                }
        }
        return null;
    }
}
